

IF NOT EXISTS(SELECT 1 FROM sys.tables AS t (NOLOCK) INNER JOIN sys.columns AS c (NOLOCK) ON c.object_id = t.object_id WHERE t.name = 'yt_tapd_story' AND c.name = 'rWorkspace_ID')
BEGIN
		ALTER TABLE dbo.yt_tapd_story ADD rWorkspace_ID INT
END
GO


IF NOT EXISTS(SELECT 1 FROM sys.tables AS t (NOLOCK) INNER JOIN sys.columns AS c (NOLOCK) ON c.object_id = t.object_id WHERE t.name = 'yt_tapd_task' AND c.name = 'rWorkspace_ID')
BEGIN
		ALTER TABLE dbo.yt_tapd_task ADD rWorkspace_ID INT
END
GO

